<?php

class toolbox {
	// Return current URL
	public function getCurrentUrl() {
		$url = "http" . ((!empty($_SERVER['HTTPS'])) ? "s" : "") . 
				"://" . $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
		return $url;
	}
}

?>